package org.xserver.component.extension.filter.condition;

import org.xserver.component.core.interfaces.InterfaceMeta;
import org.xserver.component.extension.filter.FilterConfig;

/**
 * check request match condition, subclass implments resolveCondition method to
 * offer self resolver.
 * 
 * @author idoldefine
 * @since 2015/10/28
 * 
 */
public interface ConditionResovler {
	/**
	 * check the request match condition, if match return true, else return
	 * false.
	 * 
	 * @param interfaceMeta
	 *            the request instance
	 * @return match return true, not return false
	 */
	public boolean checkCondition(InterfaceMeta interfaceMeta,
			FilterConfig filterConfig);
}
